#include "Grad.h"
#include "grade.h"

using namespace std;
//TODO
#define _cpp_min(a, b) ((a) < (b) ? (a) : (b))
double Grad::grade() const{
    return _cpp_min(Core::grade(), thesis);
}

std::istream &Grad::read(std::istream &in){
    Core::read_common(in);
    in >> thesis;
    read_hw(in, homework);
    return in;
}